package com.it.domain;

public class Employee {
    private String name;
    private int age;
    private int income;


    public Employee() {
    }

    public Employee(String name, int age, int income) {
        this.name = name;
        this.age = age;
        this.income = income;
    }

    public void work(){
        System.out.println("姓名为"+name+",年龄为"+age+",工资为"+income+",正在工作.");

    }


    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * 获取
     * @return income
     */
    public int getIncome() {
        return income;
    }

    /**
     * 设置
     * @param income
     */
    public void setIncome(int income) {
        this.income = income;
    }


}
